package com.imooc.service;

import com.imooc.dto.OrderDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 功能描述: <br>
 * (订单模块service)
 *
 * @Author:Mr. xyb
 * @Date: 2018/5/18 17:11
 * @since: 1.8.0
 * @version: 1.0.0
 */
public interface OrderService {


    /*创建订单*/
    OrderDto create(OrderDto orderDto);

    /*查询单个订单*/
    OrderDto findOne(String orderId);

    /*查询某个用户的订单列表*/
    Page<OrderDto> findList(String buyerOpenid, Pageable pageable);

    /*取消订单*/
    OrderDto cancel(OrderDto orderDto);

    /*完结订单*/
    OrderDto finish(OrderDto orderDto);

    /*支付订单*/
    OrderDto paid(OrderDto orderDto);

    /*查询所有订单列表*/
    Page<OrderDto> findList(Pageable pageable);
}
